    <include file="Common:header"/>
    <title></title>
	<css file="__PUBLIC__/Admin/css/category.css" />
    <js file="__PUBLIC__/js/jquery-1.8.2.min.js" />
    <js file="__PUBLIC__/Admin/js/category.js" />
</head>
<body>

		<h2>
            <a>所在位置：商品管理>品牌列表</a>
        </h2>
         <br/>
       <table class="table1">
        <thead>
            <tr style="background:#72A9D3">
                <th width="20" align="right">ID</th>
                <th>商品品牌名称</th>
                <th>商品LOGO</th>
                <th>是否热销</th>
                <th  width="400">操作</th>
            </tr>
        </thead>
        <tbody>
            <if condition="$brandCounts eq 0">
                <tr>
                    <td colspan="3" align="right"><font color='red'>还没有任何商品品牌数据，赶快添加吧！</font></td>
                    <td>
                        <a href="{:U('addBrand')}"><b>点击添加商品品牌</b></a>
                    </td>
                </tr>
            </if>
            <foreach name='brands' item='n'>
            <tr class="catgorylist">
                <td align="center">{$n.id}</td>
                <td>
                    <if condition="$n['hot'] eq 1">
                        <font color="red" size="4">{$n.name}</font>
                    <else/>
                        {$n.name}
                    </if>
                    
                </td>
                <td><img src="{$n.logo}" width="80" title="{$n.name}" alt="{$n.name}"></td>
                <td>
                    <if condition="$n['hot'] eq 1">
                        <font color="red" size="4">【热销品牌】</font>
                    </if>
                </td>
                <td>
                    <a href="{:U('attrList',array('tid' => $n['id']))}">详细信息</a> |
                    <a href="{|U('editShow',array('cid'=>$n['cid']))}">编辑</a> |
                    <a href="{|U('arc/addShow',array('cid'=>$n['cid']))}">删除该品牌</a>
                </td>
            </tr>
            </foreach>
            <tr>
                <td colspan="4"></td>
                <td>
                    <a href="{:U('addBrand')}"><font color="red" size="3">点击添加商品品牌！</font></a>
                </td>
            </tr>
            <if condition="$brandCounts gt 0">
            <tr>
                <td colspan="5" align="center">{$page}</td>
            </tr>
            </if>
        </tbody>
    </table>
</body>
</html>